import { API } from '../helpers/axios'
import { buildSearchParamsWithLocale } from '../helpers/urlParamsHelper'

export default {
  addParticipantToDyteMeeting: messageId => {
    const search = buildSearchParamsWithLocale(window.location.search)
    const urlData = {
      url: `/api/v1/widget/integrations/dyte/addParticipantToMeeting${search}`
    }
    return API.post(urlData.url, { messageId: messageId })
  }
}
